<?php
include_once($_SERVER['DOCUMENT_ROOT']."/collect/Lib/ORG/H2c.class.php");
if(preg_match("/https\:\/\/media\.gxtv\.cn\:8444\/gxgdapp\/upload\/Image\/default\/(.*)\/0_640_400\.jpg/Uisx",$this->nr,$nn)) {
	$html = file_get_contents("https://media.gxtv.cn:8443/gxgdapp/vod/pc/{$nn[1]}.json?version=4.5.9&innvokedate=20180621154925");
    preg_match("/urls\\\\\"\:\[\\\\\"(.*)\\\\\"/Uisx", $html, $nnee);
	if(count($nnee[1])>0){
        $this->swfstr=quanurl($nnee[1],"http://dbnew.gxtv.cn/gxgdapp/vod/");
	}
}

if(preg_match("/createPlayer\(\"video\:\/\/vid\:(.*)\"\,([^\,]+)\,\"(.*)\-(.*)\-(.*)\"/Uisx",$this->nr,$nnee)) {
    //https://media.gxtv.cn:8443/gxgdapp/vod/pc/2018/06/20/59da619f91b94652bac54706a5224e24.json?version=4.5.9&innvokedate=20180621162636
    //https://media.gxtv.cn:8443/gxgdapp/vod/pc/////.json?version=4.5.9&innvokedate=20180621154925
    $html = file_get_contents("https://media.gxtv.cn:8443/gxgdapp/vod/pc/{$nnee[3]}/{$nnee[4]}/{$nnee[5]}/{$nnee[1]}.json?version=4.5.9&innvokedate=20180621154925");
    preg_match("/urls\\\\\"\:\[\\\\\"(.*)\\\\\"/Uisx", $html, $nnee);
    if(count($nnee[1])>0){
        $this->swfstr=quanurl($nnee[1],"http://dbnew.gxtv.cn/gxgdapp/vod/");
    }
}
?>